import request from "@/router/axios";


export const getAllBusinessCategory = (params) => {
  return request({
    url: "/admin/shop/allBusinessCategory",
    method: "get",
    params: { ...params },
  });
};
export const getShopList = (params) => {
  return request({
    url: "/admin/shop/pageList",
    method: "get",
    params: { ...params },
  });
};

export const authShopItem = (row) => {
  return request({
    url: "/admin/shop/auth",
    method: "post",
    data: row,
  });
};

export const delShopItem = (row) => {
  return request({
    url: "/admin/shop/delete",
    method: "post",
    data: row,
  });
};

export const setIsVipShopItem = (row) => { // 废弃
  return request({
    url: "/admin/shop/setIsVip",
    method: "post",
    data: row,
  });
};

export const setShopItemStatus = (row) => {
  return request({
    url: "/admin/shop/setStatus",
    method: "post",
    data: row,
  });
};


export const getAllShopData = (params) => {
  return request({
    url: "/admin/shop/getAllShop",
    method: "get",
    params,
  });
};